from api.biz.base.base_info import BaseClientApi

class AddTerminalApi(BaseClientApi):
    def __init__(self,terminalCode,terminalType,terminalMac,status=True):
    # def __init__(self):
        super().__init__()
        self.url = f"{self.host}/terminal/add"
        self.method = "post"
        self.json = {
            "terminalCode": terminalCode,
            "terminalType": terminalType,
            "terminalMac": terminalMac,
            "status": status,
        }

class QueryTerminalApi(BaseClientApi):
    def __init__(self, terminalMac):
        super().__init__()
        self.url = f"{self.dev_host}//ile/uploadAliyunReturnUrl"
        self.method = "get"